package com.ithei.date.mydate;

import java.util.Date;

public class setDate {
    public static void main(String[] args) {
        Date date=new Date();
        long l=date.getTime();
        long l10=l-1000L*60*60*24*365*10;
        date.setTime(l10);
        System.out.println(date);
        System.out.println(l10);
        Date date1=new Date(l10);
        System.out.println(date1);
        System.out.println(System.currentTimeMillis()==new Date().getTime());
    }
}
